package cn.edu.heuet.bnve.utils;

import cn.edu.heuet.bnve.R;

public class ColorUtil {

    public   static int getBackgroundResource(int color){
        switch (color){
            case 0:
                return R.drawable.item_bg_blue1;
            case 1:
                return R.drawable.item_bg_royal_blue1;
            case 2:
                return R.drawable.item_bg_orange_red1;
            case 3:
                return R.drawable.item_bg_dark_salmon1;
            case 4:
                return R.drawable.item_bg_slate_gray1;
            case 5:
                return R.drawable.item_bg_light_sea_green1;
            case 6:
                return R.drawable.item_bg_dark_slate_blue1;
            case 7:
                return R.drawable.item_bg_medium_sea_green1;
            default:
                return R.drawable.item_bg_blue1;
        }
    }
    public   static int getBackgroundColor(int color){
        switch (color){
            case 0:
                return R.color.dodger_blue;
            case 1:
                return R.color.royal_blue;
            case 2:
                return R.color.tomato;
            case 3:
                return R.color.dark_salmon;
            case 4:
                return R.color.slate_gray;
            case 5:
                return R.color.light_sea_green;
            case 6:
                return R.color.dark_slate_blue;
            case 7:
                return R.color.medium_sea_green;
            default:
                return R.color.dodger_blue;
        }
    }
    public   static int getColorName(int color){
        switch (color){
            case 0:
                return R.string.blue;
            case 1:
                return R.string.royal_blue;
            case 2:
                return R.string.tomato;
            case 3:
                return R.string.dark_salmon;
            case 4:
                return R.string.slate_gray;
            case 5:
                return R.string.light_sea_green;
            case 6:
                return R.string.dark_slate_blue;
            case 7:
                return R.string.medium_sea_green;
            default:
                return R.string.blue;
        }
    }
}
